{extend name="public/base" /}

{block name="title"}<title>{if condition="$data"}{$Think.lang.edit}{else /}{$Think.lang.create}{/if}</title>{/block}

{block name="pjax_container"}
<section class="content-header">
    <h1>扩展配置</h1>
    <ol class="breadcrumb">
        <li class="active"><i class="fa fa-dashboard"></i> </li>
    </ol>
</section>
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <form class="form-horizontal" method="POST" action="" onsubmit="return false" >
                <div class="nav-tabs-custom">
                    <ul class="nav nav-tabs">
                        <li class="active"><a href="#tab1" data-toggle="tab">{$Think.lang.base_param}</a></li>
                    </ul>
                    <div class="tab-content">
                        <div class="form-group">
                            <label class="col-sm-1 control-label" style="color:#3C8DBC;">微信支付</label>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">商户号</label>
                            <div class="col-sm-7"><input class="form-control" name="wxMerNo" value="{$data.wxMerNo}" placeholder=""></div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">API秘钥</label>
                            <div class="col-sm-7"><input class="form-control" name="wxKEY" value="{$data.wxKEY}" placeholder=""></div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">应用ID</label>
                            <div class="col-sm-7"><input class="form-control" name="wxAPPID" value="{$data.wxAPPID}" placeholder=""></div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label" style=" color:#3C8DBC;">支付宝支付</label>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">商户号</label>
                            <div class="col-sm-7"><input class="form-control" name="aliMerNo" value="{$data.aliMerNo}" placeholder=""></div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">API秘钥</label>
                            <div class="col-sm-7"><input class="form-control" name="aliKEY" value="{$data.aliKEY}" placeholder=""></div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">应用ID</label>
                            <div class="col-sm-7"><input class="form-control" name="aliAPPID" value="{$data.aliAPPID}" placeholder=""></div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label" style=" color:#3C8DBC;">应用分发</label>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">充值汇率</label>
                            <div class="col-sm-7"><input class="form-control" name="czRATE" value="{$data.czRATE}" placeholder=""></div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">每日登陆</label>
                            <div class="col-sm-7"><input class="form-control" name="dayLogin" value="{$data.dayLogin}" placeholder=""></div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label" style=" color:#3C8DBC;">远程上传</label>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">云存储</label>
                            <div class="col-sm-7">
                                <div>
                                    <label class="radio-inline"><input type="radio" name="Rlogin" value="1" {if condition="$data.Rlogin eq 1"} checked {/if} >开</label>
                                    <label class="radio-inline"><input type="radio" name="Rlogin" value="2" {if condition="$data.Rlogin eq 2"} checked {/if} >关</label>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="box-footer">
                        <div class="col-sm-1"></div>
                        <div class="col-sm-7">
                            <div class="btn-group pull-right">
                                {:authAction(CONTROLLER_NAME.'/save', 'save','','0')}
                            </div>
                            <div class="btn-group pull-left">
                                <button type="reset" class="btn btn-warning">{$Think.lang.reset}</button>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</section>
<script type="text/javascript">
    $(function(){
        /*ajax页面加载icheck，有该控件的页面才需要*/
        $('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
            checkboxClass: 'icheckbox_minimal-blue',
            radioClass: 'iradio_minimal-blue'
        });

        /*ajax页面加载icheck，有该控件的页面才需要*/
        $(".select2").select2({language:"zh-CN"});

        {if condition=" $rest_login == 1 "}
        restlogin('{$rest_login_info}');   //登录超时
        {/if}
    })
</script>
{/block}